#/bin/bash

export MASHUP_SERVER_BASE_DIR="/home/ignacio/workspace/mashup-server-2.0/"

# Configuracion basica del sistema.
export MASHUP_SERVER_CONF_FILE="${MASHUP_BASE_DIR}mashup-server-config.txt"
export MASHUP_SERVER_LOG_FILE="${MASHUP_BASE_DIR}logger_conf.txt"

export LD_LIBRARY_PATH=$MASHUP_SERVER_BASE_DIR:/usr/local/lib:$LD_LIBRARY_PATH
export MASHUP_SERVER_IMPL="${MASHUP_SERVER_BASE_DIR}libmashup-app.so"
export TESIS_HOME_IP_SERVICE="192.168.1.43"
export TESIS_ACCOUNTS_IP_SERVICE="192.168.1.43"
export TESIS_CREDIT_CARDS_IP_SERVICE="192.168.1.43"
export MULTIACCEPT=1
if [ ! -f $MASHUP_SERVER_CONF_FILE ]; then
	echo "No se pudo encontrar archivo de configuracion $MASHUP_SERVER_CONF_FILE. Finalizando..."
	exit 1
fi
echo "Iniciando mashup-server..."
exec `dirname $0`/mashup-server
